/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
  package sump;

import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.geom.Rectangle2D;
import java.util.HashMap;

/**
 *
 * @author Diegolas
 */
public abstract class Elemento {

    protected Rectangle2D colision = new Rectangle2D.Double();
    
    protected double velX;
    protected double velY;
    protected int xImg;
    protected int yImg;
    
    protected boolean estatico;
    protected boolean activo;
    protected boolean controlable;
    protected boolean tocable;
    
    protected HashMap<String, Image[]> sprites = new HashMap<String, Image[]>();
    protected int posSprite;
    protected String estado;
    protected String lugar;
    
    
    public abstract void actualizar(double dt, boolean[] teclas, Tile[][] mapeado);
    public abstract void pintar(Graphics2D g2D);

    public abstract void setX(double x);

    public abstract void setY(double y);

    public double getX() {
        return colision.getX();
    }

    public double getY() {
        return colision.getY();
    }
    
    public double getAncho()
    {
        return colision.getWidth();
    }
    
    public double getAlto()
    {
        return colision.getHeight();
    }
    
}
